<?php
namespace app\common\model;

use think\Model;

class RecordModel extends Model
{
	
	protected $autoWriteTimestamp='datetime';
	protected $updateTime = false;
	protected $dateFormat = "Y-m-d H:i:s";
	protected $field = true;
	public function group(){
		return $this->belongsTo('TemplateGroupModel','group_id','group_id');
	}
	public function classs(){
		return $this->belongsTo('RelationClassModel','class_id','class_id');
	}
	public function teacher(){
		return $this->belongsTo('RelationTeacherModel','t_user_id','user_id');
	}
}